Fix notify::label emmision in GtkMenuItem
authorJan Arne Petersen <jpetersen@openismus.com>
Thu, 11 Mar 2010 14:40:55 +0000 (15:40 +0100)
committerJan Arne Petersen <jpetersen@openismus.com>
Mon, 15 Mar 2010 19:50:07 +0000 (20:50 +0100)
commit63c21edab78aa900d2ce3c49600647f8aaa2cc61
treeccb5aeef7f9130d31897b055480e45dc21b2a6be
parente8c0920494151c603eca6a7decfb3509a66c8403
Fix notify::label emmision in GtkMenuItem

Emit notify::label in GtkMenuItem also when label is changed through GtkAction.

Refactor GtkMenuItem and remove duplicated code for GtkLabel creation. Reset
the accel-widget back to the GtkMenuItem itself when there is no action related
to the GtkMenuItem anymore.

Add test for notify::label emmisions.

Fixes bug 612574 - GtkMenuItem does not emit notify::label when label is
changed through GtkAction.
gtk/gtkmenuitem.c
gtk/tests/Makefile.am
gtk/tests/action.c [new file with mode: 0644]